#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# 平方
def f(x):
    return x * x

r = map(f, [1, 2, 3, 4, 5, 6])
print(list(r))

# tostring

list(map(str, [1, 2, 3, 4, 5, 6]))

# upper case

def uppercase(s):
    return s[:1].upper() + s[1:].lower()

list(map(uppercase, ['jingks', 'yx']))